#打开文件
file_read = open("readme", encoding='utf-8')
file_write = open("readme2", 'w', encoding='utf-8')

#读取并写入文件
text = file_read.read()
file_write.write(text)

#关闭文件
file_read.close()
file_write.close()